package com.night.administration.service.impl;

import com.night.administration.mapper.ClassMapper;
import com.night.administration.service.ClassService;
import com.night.common.entity.administration.Classes;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: ClassServiceImpl
 * @Description: //TODO
 * @author: LZJ
 * @date: 2022/10/19-9:28
 * @version: v1.0
 */
@Service("ClassService")
@Transactional
public class ClassServiceImpl implements ClassService {
    @Resource
    private ClassMapper classMapper;

    @Override
    public void insert(Classes classes) {
        classMapper.insert(classes);
    }

    @Override
    public List<Classes> getAll() {
        return classMapper.getAll();
    }
}
